package com.wyl.mobileplayer.presenter;

import com.wyl.mobileplayer.model.IMediaModel;
import com.wyl.mobileplayer.model.VideoModel;
import com.wyl.mobileplayer.model.bean.Media;
import com.wyl.mobileplayer.ui.fragment.VideoFragment;

import java.util.List;

/**
 * 时间：2018/6/24 0024 21:01
 * 描述：
 * 修改人：
 * 修改时间：
 * 修改备注：
 *
 * @author WangYoule
 * @qq 270628297
 */
public class VideoPresenter {
    private VideoFragment fragment;
    private VideoModel model;

    public VideoPresenter(VideoFragment fragment, VideoModel model) {
        this.fragment = fragment;
        this.model = model;
    }

    public void getLocalVideo() {
        model.getLocalVideo(new IMediaModel.CallBack() {
            @Override
            public void onSucceed(List<Media> mediaList) {
                fragment.onSucceed(mediaList);
            }
        });
    }

}
